<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;


class BonusCategory extends Model
{
    use SoftDeletes;

    public $table = 'bonus_categories';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'shop_id',
        'name',
        'money',
        'type',
        'min_amount',
        'max_amount',
        'distribute_number',
        'used_number',
        'get_qualification',
        'use_start_date',
        'use_end_date',
        'publish_number',
        'limit_number',
        'use_status',
        'status',
    ];

    public function bonuses()
    {
        return $this->hasMany('App\Models\Bonus');
    }
}
